<template>
    <div>
        首页
        <el-button type="warning" round @click="logOut">退出</el-button>   
    </div>
</template>

<script>
export default {
    methods:{
        logOut(){
            //清空sessionstorage
            window.sessionStorage.clear();
            //跳转登录页面
            this.$router.push("/login");
            confirm("您确定要退出吗？")
        }
    }
}
</script>

<style lang="less" scoped>

</style>